/*
 * @Author: Jone XIn
 * @Date: 2022-01-10 22:40:27
 * @LastEditTime: 2022-01-28 21:07:34
 * @Description: 设备信息操作类
 */
const WatchFile = require('../job/awtch_file');
const { getLocalIp, formatDate } = require('../utils/tools');
const path = require('path');
const fs = require('fs');
const { db_config } = require('../config.json');
const dbInstance = require('../db/db');
const seq = dbInstance.getSequelizeInstance(db_config);
const { Project } = require('../model/project');
const { Room } = require('../model/room');
const { Device } = require('../model/device');
const { cerateRoomId } = require('../utils/uuid');

const handOfflineProject = async (offlineList) => {
    try {
        await Project.deleteOfflineList(offlineList);
        console.log(`清除掉线房间${JSON.stringify(offlineList)}`);
    } catch (_) {
        console.log(_);
    }
}

module.exports = {
    handOfflineProject
};